/* 全局样式 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #00ff9d;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}
.logo img {
    max-width: 50px;
    height: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容样式 */
header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.profile {
    margin-bottom: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

/* 章节样式 */
.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content {
    color: var(--text-secondary);
}

.content h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
}

.content ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    header {
        padding: 6rem 1rem 3rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc7d;
}
.back-to-top, .print-btn {
    position: fixed;
    bottom: 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.print-btn {
    right: 30px;
}

.back-to-top {
    right: 100px;
}

.back-to-top:hover, .print-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

@media (max-width: 768px) {
    .back-to-top, .print-btn {
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
    .print-btn {
        right: 20px;
    }
    .back-to-top {
        right: 80px;
    }
}
@media (max-width: 480px) {
    .profile-img {
        width: 150px;
        height: 150px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .section {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
}

@media print {
    .navbar, .back-to-top, .print-btn {
        display: none !important;
    }
    body {
        background-color: white;
        color: #000;
    }
    .section {
        box-shadow: none;
        background-color: transparent;
    }
}